import { createPinia } from 'pinia'; // 引入createPinia
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'; // 引入持久化
import useCounterStore from './modules/counter';
import useRouteCacheStore from './modules/routeCache';

const pinia = createPinia();

pinia.use(piniaPluginPersistedstate);

// 汇总到主文件中
export { useCounterStore, useRouteCacheStore };

export default pinia;
